package com.excerise.extend;

/**
 *
 *
 * @author Way on 2021/8/1
 */
public class Sub extends Base {

    public Sub() {
        // 默认调用了父类的构造器
        super("jack", 19);
        System.out.println("子类构造器 Sub()....");
    }

    public Sub(String name) {
        super("jack", 19);
        System.out.println("子类构造器 Sub(String name)....");
    }
}
